Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
17 replies
241 views

I have this code that works great except for when the end of the week comes up I have to change 8 to 15 or vise versa in order to get to the correct workbook. Is there another way? This code is to ...
Rose 's user avatar
0 votes
0 answers
135 views

I'm currently struggling on an assignment (probability class) which require creating a function (VBA excel) that contains a variable number of sums one inside the other based on a parameter. I'm not ...
Victor's user avatar
  • 1
1 vote
2 answers
103 views

I have a problem in making a search for a range of dates with VBA. Using the start date as the default search in the date range and when find the same date start to count (x) in the range between the ...
A Mu's user avatar
  • 23
-1 votes
1 answer
88 views

I am working on pulling information from a table into a Check In & Out form. We will be cataloging helmets using barcodes. With the way I have the form set up, scanning a barcode will ...
Tiffani-Michelle Schmidt's user avatar
0 votes
1 answer
101 views

i have excel sheet with 5 columns. i used following code for sorting. it works fine lrow As Long lrow = Application.WorksheetFunction.CountA(Sheet2.Range("A:A")) Sheet2.Range("A3:E&...
Raja V's user avatar
  • 11
1 vote
0 answers
70 views

I have this code: Private WithEvents App As Word.Application Private Sub Document_Open() Set App = Word.Application End Sub Private Sub Document_New() Set App = Word.Application End Sub ...
Wei-ying Chen's user avatar
Advice
0 votes
3 replies
76 views

I am adding new sheets to a workbook using the value of a column. In the column there are duplicate values. I want to skip a duplicate value in my loop.
Steve Dyke's user avatar
0 votes
1 answer
94 views

I would like to make a VBA macro for Word 2021 that will insert an IF field with STYLEREF fields inside it, to show the beginning and ending paragraph numbers in a page header. I am able to insert the ...
JimH44's user avatar
  • 532
Best practices
0 votes
2 replies
118 views

I'm quite frustrated trying to write to a binary file in Excel VBA. The issue is with fixed-length string data in a Type structure. (Note that my binary file requirements are that fixed-length string ...
Dave Clark's user avatar
0 votes
1 answer
113 views

I have the following VBA code, but one line is giving an error: rng(i, 4).Formula = "=IF(LEFT(A" & (i + 1) & ",2)="RN","RN",IF(LEFT(A" & (i + 1) &...
Davey Brankaert's user avatar
-4 votes
1 answer
105 views

Someone can tell me what is wrong with my code? When I click on the btn_prelrep button, I want to get information from equipment input control, that information is concatenated with the path of a file ...
samnick liboum's user avatar
0 votes
1 answer
171 views

I have Power Query table in an Excel spreadsheet that filters a different table for a specific Index number using a List Box of Client Names. The first table has 3 columns: Index Attribute Value 1 ...
Brian Schmitz's user avatar
2 votes
3 answers
194 views

This Excel VBA code is supposed to copy the entries from Sheet "Entry" then Insert & Paste only Values in Sheet "List". Sheet List has a password to prevent editing. Sub ...
David's user avatar
  • 39
0 votes
0 answers
99 views

I am trying to import a table from one workbook to another, but I want to add the table with each import to the next empty cell (i.e. don't want to overwrite existing data in the target workbook). I ...
Cailin Henry's user avatar
0 votes
1 answer
72 views

I have managed to stop a tab from being printed using the BeforePrint... I now need to prevent the File|Export from firing for the same tab. Is there something like the code below to stop FILE | ...
RealEstateMan's user avatar
Best practices
0 votes
4 replies
113 views

I have confirmed that the following VBA code works just fine. Dim mydate As Date mydate = Date Open "C:\Windows\Temp\dlctest.data" For Binary Access Write As #1 Put #1, , mydate Close #1 ...
Dave Clark's user avatar
-1 votes
0 answers
131 views

I am looking to create a macro that will email a range of addresses as per the following criteria: Column A contains email subject Column B contains email addresses Column C contains email body ...
coyner's user avatar
  • 1
1 vote
1 answer
104 views

(Follow-on from: MS access Split report and export each row as a PDF ) I am exporting files to PDF based on a a report. Initially to get it working I was naming the PDF files after the Table's ID ...
Darren Murtagh's user avatar
1 vote
2 answers
106 views

I'm trying to use VBA to insert a new row and then create a reference using the date in the format yyyymmdd followed by a hyphen and then 1. So for example, today I would like the output to read ...
Barry Lees's user avatar
Advice
0 votes
3 replies
58 views

I have my presentation on the first slide while the room fills. I would like the Presentation timer to reset when moving to slide 2. I can't seem to remember to either, press reset or pause/start to ...
Tinbendr's user avatar
  • 104
Advice
0 votes
1 replies
119 views

I want a VBA code to prevent fill and drag in an Excel sheet without hiding the fill and drag cruiser. and without preventing them from advanced settings. In addition, I want this code to be localized ...
Ahmed Magdy Tpozada's user avatar
-3 votes
1 answer
207 views

1) The following code is able to draw a Map Chart successfully. Public Sub Macro1() For i = ActiveSheet.Shapes.Count To 1 Step -1 ActiveSheet.Shapes(i).Delete Next i ...
George Costanza's user avatar
1 vote
1 answer
145 views

When I first open up the Excel file, as well as after I click on a button to import additional sheets into the file, the BeforeDoubleClick event works (it adds 'ticks' to cells so the user can see how ...
Sally Parkes's user avatar
Advice
0 votes
6 replies
121 views

I am completely new to Visual Basic as a coding language coming mainly from Java and SQL but rusty in both of them in current role I am working with more Microsoft Access Databases but I need to ...
Darren Murtagh's user avatar
3 votes
1 answer
107 views

I have a simple UserForm to prototype the concept of loading different sizes of the same image based on the Windows display scale that the user sets. For this example, I'm just testing with 100% scale ...
Jamie Garroch - MVP's user avatar
1 vote
2 answers
115 views

I have code that searches for a particular unique pattern and, if found, replaces that pattern. The replace should be limited to the paragraph in which the match is found, but instead it is executing ...
rkent's user avatar
  • 43
1 vote
2 answers
153 views

I'm probably missing something very simple here but, I have cobbled together the following code VBA code in Excel,, mainly from answers I've seen here and this runs OK. However what I would like to do,...
N. Blain's user avatar
1 vote
1 answer
84 views

I'm working with a macro designed to copy selected sheets into a new workbook, replace their formulae with values, then resave the file in the same folder as the macro workbook. For the most part, the ...
Werrf's user avatar
  • 1,244
2 votes
1 answer
64 views

I am trying to export a VBA module from one workbook and import it into another: Dim ProofName As Variant Dim sDate As String Dim CashShN As Variant Dim wbkSource As Workbook Dim wbkTarget As Workbook ...
PhantomBanker's user avatar
3 votes
1 answer
87 views

I’m trying to change the font color of the data labels in a Sunburst chart in Excel using VBA. So far, I’ve tried several approaches over the past two days, but I can’t seem to access or modify the ...
Grégory Fonrouge's user avatar
0 votes
1 answer
101 views

I want to test if a foldername exists using the FolderExists method in classic asp. My code send the foldername as a URL parameter and are received correctly using request(foldername). But if there ...
Morten Brockhoff's user avatar
Advice
0 votes
7 replies
121 views

I am working with two different workbooks. WB1=Destination data, WB2=Source. I am trying to do a lookup and match between the wb, using wb2 to find the match in WB1. Once the match is found, copy ...
Rose 's user avatar
1 vote
1 answer
72 views

I am trying to get data from my data imput sheet into my record keeping table, so I am trying to do VBA code to 1. create new row 2. paste the data in there as value and not formula I created ...
Tom Smith's user avatar
1 vote
1 answer
104 views

I'm looking for a way to have a value automatically filled into an Excel Workbook based off of data entered into another Workbook. I currently have a spreadsheet which serves as a Daily Attendance ...
Atxbobcat's user avatar
2 votes
0 answers
191 views

For years I have had code similar to the following, and it has always worked fine. But now we recently updated to Win 11, perhaps it is related or there is some other update or policy change that ...
Andreas's user avatar
  • 24k
Advice
0 votes
2 replies
124 views

I use SQL to read data from a closed workbook. Is it possible to write new records or updates to a record in a closed workbook using SQL?
Karl-Heinz's user avatar
0 votes
2 answers
107 views

I am new to making macros and have basically no experience with VBA. However, I have managed to cobble together the code below. The code is supposed to load data from a worksheet (the name of which I ...
Allison Rodgers's user avatar
0 votes
1 answer
58 views

We have a VBA process that uses the Adobe Acrobat API. This uses the FDF functionality for filling in a PDF template fields with data. When we went to 64-bit O365, the AddIn provided by Adobe no ...
C Tauss's user avatar
  • 118
1 vote
2 answers
158 views

I've created a VBA Class module and written all the necessary code within it. When I go to use it, in Excel, I instantiate it in a global module as follows. Public gblFrequencyList As New clsLists ...
Dave Clark's user avatar
1 vote
2 answers
95 views

I tried the below, but it is not doing exactly what I need it to. Instead of unprotecting the sheet and clearing the contents of grey cells (191, 191, 191) I'd like to change the approach and clear ...
Nick's user avatar
  • 11
1 vote
0 answers
124 views

I set up an event listener in Outlook that, when a certain item drops into a mailbox, will take the attachment from the email, unzip the file and save it into a directory. I use ADODB.Connection to ...
Drawleeh's user avatar
  • 279
4 votes
2 answers
165 views

I have a "simple" comparison that is generating a "Type mismatch" error when I delete a row in the worksheet (worksheet change event fires). If Target.Column = gblScheduled And ...
Dave Clark's user avatar
0 votes
0 answers
74 views

I'm trying to write a script for Attachmate EXTRA! X-treme in its in-application macro editor ("Extra Basic"), but there's some syntax problem or error occurring in the code that's ...
Sophie Gardiner's user avatar
2 votes
3 answers
102 views

I'm working on a VBA problem to find the maximum and minimum values in a sequence while skipping invalid inputs. The issue I'm facing is that when the first value in the sequence is invalid, the ...
Harry Nguyen's user avatar
2 votes
1 answer
126 views

I am writing VBA code in an Excel spreadsheet. I want to output the results to an ASCII (text) file. I google-checked the "Open" command to open a file and associate it to a file number. The ...
Fausto A. A. Barbuto's user avatar
-1 votes
1 answer
88 views

I am trying to create a folder at https:\\myorg.sharepoint.com\sites\CASH ORDER\Testing using... MkDir "//myorg.sharepoint.com/sites/CASH ORDER/Testing" ...but I keep getting a run-time ...
PhantomBanker's user avatar
Advice
0 votes
3 replies
95 views

User selects all cells via Ctrl+A or clicking in the box above the Row numbers and to the left of the Column letters With all cells selected, if they auto resize any column a. All hidden columns are ...
j2associates's user avatar
  • 1,165
-2 votes
3 answers
153 views

In column A, I have a list of names. The names repeat sometimes, depends on the data. . I want to format the list by bolding every other name. Is there a way to automate this bold formatting? The ...
Tristan Privott's user avatar
1 vote
1 answer
102 views

This code was supposed to create a cloned product under the selected root assembly with the exact same structure. Instead, it is creating only a component assembly, as shown in the image. I need it to ...
Sreerag's user avatar
  • 13
1 vote
1 answer
120 views

Basically I have a task list, and once the tab is labeled as "closed" in column G of the "Open Items" Sheet, It needs to move to the "Closed Items" sheet. The function ...
Lessthansymbol3's user avatar

1
2 3 4 5
4331