Quantcast
Channel: VBForums - Office Development
Browsing index pages (4682 articles)

Excel VBA Print Range to A4 without margins and squeezed range

Hello! Im building an Offer tool in excel with inventory and offer builder sheet. Im happy with the results so far. but due to throughout the whole process making sure the tool will be...

View Article


API declaration PtrSafe in VBA7 -- List of API Sub

Hi, In order to declare a Windows API-Sub or Function with the conditionnnal #If VBA7 Then Public Declare PtrSafe Sub ... #Else Public Declare Sub ... #End If how may I know if the Sub return a LongPtr...

View Article


Image may be NSFW.
Clik here to view.

Macro to search and insert details based on a table

Need to find in tab "SORTED & APPLICATION" in column "B" by the finding criterias copy and past the respective Responsible and location details in the respective raw in the "SORTED &...

View Article

Image may be NSFW.
Clik here to view.

Visual Basic in MS Access Using SQL

I have what I thought was a simple problem. If something the user does throws an error, I want the use to be able to tell the system to ignore all errors of that type. I set up a simple table to hold...

View Article

MsOf365 Update chart in Powerpoint presentation

Trying to update a chart in a Powerpoint presentation using VBA with data that comes from an Excel Workbook. The Excel workbook where the data comes from will not be available to the people that will...

View Article


Convert Excel 2021 macro to Excel 2007 macro

Hi everyone I have this macro that I need to convert from Excel 2021 to Excel 2007. Code: Sub Auto_Open() 'Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) 'Saves the...

View Article

Need macro for Excel 2007 to auto save the file on external drive with name+time

Hi guys, I need a macro in Excel 2007 that does this: Whenever I open an excel 2007 file I need the macro to auto save the file on external drive with original name followed by date + time. For...

View Article

VB New User

I am new to VBA, want to explore features to use VBA in financial risk modelling

View Article


[RESOLVED] Need macro for Word 2021 to save as word document automatically...

Hi everyone, I have a lot of old word documents (Microsoft Word 1997-2003 Document) with .doc extension types that I need to convert to normal Word Documents (Microsoft Word Document) - docx extension....

View Article


MsOf10 Why does Excel just shutdown?

I have an Excel macro that works. Sometime, the macro creates a very large spreadsheet, i.e., multiple sheets with 500,000 rows each (each with not more than 13 columns, each of which has a single...

View Article

Why this MS Access query counts row values twice

I have this query being generated at runtime: Code: SELECT 1 as red, " VKUPNO" AS UnvierzitetFakultet, Sum(IIf([TAB]=11 And [RED]=1,[K1],0)) AS Se, Sum(IIf([TAB]=11 And [RED]=1,[K2],0)) AS zeni,...

View Article

MsOf365 [EXCEL] Scripting Dictionary - Values not quite right

Hi all I have a VBA script that grabs data from a sheet sticks it in a dictionary and then itterates over all the rows to see if any match, if they do it adds 1 to the key/item - if it doesn't it...

View Article

Why this MS Access query counts row values twice

I have this query being generated at runtime: Code: SELECT 1 as red, " VKUPNO" AS UnvierzitetFakultet, Sum(IIf([TAB]=11 And [RED]=1,[K1],0)) AS Se, Sum(IIf([TAB]=11 And [RED]=1,[K2],0)) AS zeni,...

View Article


MsOf365 [EXCEL] Scripting Dictionary - Values not quite right

Hi all I have a VBA script that grabs data from a sheet sticks it in a dictionary and then itterates over all the rows to see if any match, if they do it adds 1 to the key/item - if it doesn't it...

View Article

Why this MS Access query counts row values twice

I have this query being generated at runtime: Code: SELECT 1 as red, " VKUPNO" AS UnvierzitetFakultet, Sum(IIf([TAB]=11 And [RED]=1,[K1],0)) AS Se, Sum(IIf([TAB]=11 And [RED]=1,[K2],0)) AS zeni,...

View Article


MsOf365 [EXCEL] Scripting Dictionary - Values not quite right

Hi all I have a VBA script that grabs data from a sheet sticks it in a dictionary and then itterates over all the rows to see if any match, if they do it adds 1 to the key/item - if it doesn't it...

View Article

best practice - global constant or class module for outlook vba project?

My outlook VBA project moves multiple emails from 1 folder to another folder. The target folder for each email depends on the email's mailbox and its tag. For example: Emails from mailbox1 tagged...

View Article


Excel WB opens but then all COM errors

After I have the Excel WB open I am unable to perform a ws - xlApp.Worksheet call. I have xlApp as a global inside of my ClsExcel to ensure I'm working with the same Excel WB through the entire...

View Article

[VB.Net & Word 2019] Problem with an IF statement

I have written my own Ribbon add-in in Visual Studio, to replace lost functionality in a move from Word 2010 to Word 2019. My button in question is intended to embed an outline around a selected...

View Article

This is some cool stuff - VBA in VSCode and cloud dev w/GitHub

I came across this post on the VBA subReddit https://www.reddit.com/r/vba/comment..._in_the_cloud/ I thought this may be interesting to others here.

View Article
Browsing index pages (4682 articles)


Latest Images